package demo1.Ioc;

public class Tire {
    private int size = 20;
    private String color;

    // 支持定制
    public Tire(int size,String color) {
        this.size = size;
        this.color = color;
    }

    public void init() {
        System.out.println("轮胎——size:" + this.size);
        System.out.println("轮胎——color：" + this.color);
    }
}
